package com.xbongbong.pro.knowledge.base.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**操作知识条目参数
 *
 * @author ruansicheng
 */
@Getter
@Setter
@ToString
public class KnowledgeOperationDTO extends BaseDTO {

    @NotNull(message = "{dto.msg.formDataAdd.menuId.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Long menuId;

    /**
     * 知识id集合
     */
    @NotNull(message = "{dto.msg.formDataAdd.id.NotNull}")
    private List<Long> ids;

    /**
     * 知识库id
     */
    @NotNull(message = "{dto.msg.formDataAdd.knowledgeBaseId.NotNull}")
    private Long knowledgeBaseId;

    private Integer businessType;

    private Integer saasMark;
    /**
     * 是否启用：0/1
     */
    private Integer enable;
}
